package jzqb.controller;

import io.swagger.annotations.Api;
import jzqb.bo.VisitBo;
import jzqb.common.Result;
import jzqb.service.VisitService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletRequest;

@RestController
@CrossOrigin
@RequestMapping("/visit")
@Api(tags = "游览量")
public class VisitController {

    @Autowired
    VisitService visitService;

    /**
     * 游览量增加
     */
    @PostMapping("/visitIncrease")
    public Result visitIncrease(@RequestBody VisitBo visitBo, HttpServletRequest httpRequest) {
        Result result = visitService.visitIncrease(visitBo);
        return result;
    }
}
